package com.sky.mapper.common;

import com.sky.pojo.ShotUri;
import org.apache.ibatis.annotations.Select;

public interface ShortUrlMapper {

    //@Insert("insert into tb_short_url_info values(null,#{shortUrl},#{fullUrl},#{shortCode},#{expireTime},#{tradeNo})")
    void save(ShotUri shortUrlPojo);

    @Select("select full_url from tb_short_url_info where shot_code=#{code}")
    String selectByCode(String code);
//
//    @Select("select * from tb_short_url_info where trade_no=#{tradeNo}")
//    ShortUrl selectByTradeNo(Long tradeNo);
}
